FROM ubuntu:24.04
RUN apt-get update && apt-get install -y xserver-xorg libx11-dev mesa-utils xvfb nano software-properties-common libnvidia-encode-565-server
RUN add-apt-repository ppa:kisak/kisak-mesa
RUN apt update 
RUN apt upgrade -y
EXPOSE 80
COPY ./unity /root/unity
RUN chmod -R 755 ./root/unity
WORKDIR /root/unity
ENTRYPOINT ["/root/unity/start.sh"]

#RUN apt-get update && apt-get install -y openssh-server
#RUN mkdir /var/run/sshd
#RUN echo 'root:123456' | chpasswd
#RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
#EXPOSE 22
#CMD ["/usr/sbin/sshd", "-D"]
